<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
	<meta name="author" content="Luka Cvrk - www.solucija.com" />
	<meta name="description" content="Site Description" />
	<meta name="keywords" content="site, keywords" />
	<meta name="robots" content="index, follow" />
	<link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="css/side.css" />
	<link rel="stylesheet" type="text/css" media="screen" href="css/button.css" />
	<title>welcome</title>
	
	<%
	String username = (String)session.getAttribute("username");
	if(username == null) {
		response.sendRedirect(basePath + "login.jsp");
	}
	%>


  </head>
  
  <body>
  
	<div class="backwhite">
	<div class="header">
		<div id="search">
			<form action="">
				<fieldset>
					<input type="text" class="field" value="" placeholder="搜索"/>
					<input type="submit" class="buttons" value="" />
				</fieldset>
			</form>
		</div>
		<ul id="menu">
			<li><a href="welcome.jsp">首页</a></li>
			<!-- <li><a href="login.jsp">登录</a></li> -->
			<!-- <li><a href="register.jsp">注册</a></li> -->
			<li><a href="about.jsp">关于</a></li>
			<li><a href="photowall.jsp">照片墙</a></li>
			<li><a href="personal.jsp">个人中心</a></li>
			<li>
			<form action="${pageContext.request.contextPath}/logout.action" method="post">
			<div class="logout">
			<input class="inputbutton" type="submit" name="submitlogout" value="退出/切换"/>
		    </div>
			</form>
			
			</li>
		</ul>
	</div>

		
		<form action="${pageContext.request.contextPath}/createAlbum.action" method="post">
		<div class="createAlbumForm">
		<input style="width:416px;height:30px;color:black;font-family:Microsoft YaHei;font-size:20px;"; maxlength=150 required=true id="albumName" type="text" name="albumName"  placeholder="给相册起个名字吧。" /><br/><br/>
		<textarea style="font-family:Microsoft YaHei;font-size:20px" maxlength=300 required=true cols="40" rows="7" id="description" name="description" placeholder="对将要创建的相册进行简单的描述，最好文艺点喽。"></textarea><br/><br/>
		<input style="width:20px;height:20px;font-family:Microsoft YaHei;" type="checkbox" name="isPublic" checked="checked" value="true"/>
		公开相册，分享给小伙伴们。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.
		</div>
		
		<div class="createAlbumFormButton">
		<input class="button-circle button-flat-primary buttonpoint";  type="submit" value="创建"/>
		</div>
		</form>
		
		
		
	</div>
	

	<div id="promo">
		<div class="wrap">
			
			<div id="footer">
				 <p><a href="#" target="_blank">关于</a>|免责声明：部分素材来自互联网，如有侵权请告知。|欢迎交流：850885154@qq.com</p>
				<p>Copyright &copy; 2015 &minus; 王旭 &minus; Design: &minus; <a href="http://www.cnblogs.com/wxisme/" target="_blank">wxisme</a></p>
			</div>
		</div>
	</div>
	
</body>
</html>
